package mx.utils;

import java.util.Map;

import com.alibaba.fastjson.JSON;

import mx.utils.weatherUtil.WeatherUtil;
import net.sf.json.JSONObject;

/**
 * 将阿里天气接口返回json转化成集合，可任意取key
 * 
 * @author wkk
 *
 */
public class WeatherListUtil {
	public static Map getWeatherList() throws Exception {
		String z = WeatherUtil.getWeatherbycityname("杭州");
		String a = JSONObject.fromObject(z).get("result").toString();
		Map maps = (Map) JSON.parse(a);// 输入string，转成Map************************************************

		return maps;

	}
}
